#!/user/bin/env python3
# -*- coding: utf-8 -*-
"""
--------------------------------------
    Author:     JiChao_Song
    Date  :     2022/1/18 13:44
    Desc  :
--------------------------------------
"""
from common.enums import AbstractBaseEnum


class CaseTypeEnum:
    """用例类型"""
    # 功能测试用例
    FUNCTION_CASE = AbstractBaseEnum(key =101, value = '功能测试用例')
    # 接口测试用例
    INTERFACE_CASE = AbstractBaseEnum(key =102, value = '接口测试用例')
    # 性能测试用例
    PERFORMANCE_CASE = AbstractBaseEnum(key =103, value = '性能测试用例')


class CaseStatusEnum:
    """用例状态"""
    # 草稿
    DRAFT = AbstractBaseEnum(key = 101, value = '草稿')
    # 评审中
    REVIEWING = AbstractBaseEnum(key = 102, value = '评审中')
    # 通过
    PASS = AbstractBaseEnum(key = 103, value = '通过')
    # 不通过
    FAIL = AbstractBaseEnum(key = 104, value = '不通过')
    # 废弃
    DISCARD = AbstractBaseEnum(key = 105, value = '废弃')
    # 受阻
    BLOCK = AbstractBaseEnum(key = 106, value = '受阻')
    # 跳过
    SKIP = AbstractBaseEnum(key = 107, value = '跳过')


class CaseImportanceEnum:
    """重要程度"""
    P0 = AbstractBaseEnum(key = 101, value = 'P0')
    P1 = AbstractBaseEnum(key = 102, value = 'P1')
    P2 = AbstractBaseEnum(key = 103, value = 'P2')
    P3 = AbstractBaseEnum(key = 104, value = 'P3')
    P4 = AbstractBaseEnum(key = 105, value = 'P4')


class CasePlanStatusEnum:
    """测试计划状态"""
    # 未开始
    NOT_START = AbstractBaseEnum(key = 101, value = '未开始')
    # 进行中
    STARTING = AbstractBaseEnum(key = 102, value = '进行中')
    # 已完成
    FINISH = AbstractBaseEnum(key = 103, value = '已完成')


class CaseReviewStatusEnum:
    """用例评审计划状态"""
    # 未开始
    NOT_START = AbstractBaseEnum(key = 101, value = '未开始')
    # 进行中
    STARTING = AbstractBaseEnum(key = 102, value = '进行中')
    # 已完成
    FINISH = AbstractBaseEnum(key = 103, value = '已完成')


class CaseStepsTypeEnum:
    """用例步骤文本类型"""
    STEP = AbstractBaseEnum(key = 101, value = '步骤文本')
    TEXT = AbstractBaseEnum(key = 102, value = '描述文本')


class CaseImportTypeEnum:
    """用例导入类型"""
    EXCEL = AbstractBaseEnum(key = 101, value = 'excel文件')
    XMIND = AbstractBaseEnum(key = 102, value = '思维导图')